<?php
//count_chars(string $string, int $mode = 0): array|string
//count_chars — 返回字符串所用字符的信息

$data = "TwoTSandoneF";
//var_dump(count_chars($data));
var_dump(count_chars($data, 1));
var_dump(count_chars($data, 3));
var_dump(count_chars($data, 4));
